import React from "react";
import { Toast, Uploader } from "react-vant";
import { demoData, upload } from "./utils";
import "./App.scss";

function App() {
  return (
    <div className="App">
      <Uploader
        multiple
        upload={upload}
        defaultValue={[demoData[0]]}
        maxCount={6}
        maxSize={10 * 1024 * 1024}
        onOversize={() => Toast.info("文件大小不能超过10MB")}
      />
    </div>
  );
}
export default App;
